 
package com.wtzz.police.base.model.exception;

import com.wtzz.police.base.model.enums.WtzzResponse;

/**  
* 异常处理   
*  
* @author zxh  
* @date 2019-01-24   
*/
public class WtzzRuntimeException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 4682898658058332725L;

	protected String code;
	 
	protected String msg;
 
	
	public WtzzRuntimeException(WtzzResponse enums, String message) {
		super(message);
		this.code = enums.getCode();
		this.msg = enums.getMsg();
	}
	
	public WtzzRuntimeException(WtzzResponse enums, String message, Throwable cause) {
		super(message,cause);
		this.code = enums.getCode();
		this.msg = enums.getMsg();
	}
 
	public WtzzRuntimeException(WtzzResponse enums) {
		super(enums.getMsg());
		this.code = enums.getCode();
		this.msg = enums.getMsg();
	}

	public WtzzRuntimeException(String message, Throwable cause) {
		super(message, cause);
	}

	public WtzzRuntimeException(String message) {
		super(message);
	}

	public WtzzRuntimeException(Throwable cause) {
		super(cause);
	}

	public String getCode() {
		return code;
	}

	public String getMsg() {
		return msg;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
}
